package com.zheng.umbrella.common.constant;

/**
 * Created by Administrator on 2018/9/23.
 */
public class UmbrellaConstant {

    /**
     * 伞机状态
     */
    public static final String UM_UMBRELLA_MACHINE_STATUS = "UM_MACHINE_STATUS";
    /**
     * 雨伞状态
     */
    public static final String UM_UMBRELLA_STATUS = "UM_UMBRELLA_STATUS";

    /**
     * 型号
     */
    public static final String UM_MACHINE_TYPE = "UM_MACHINE_TYPE";
    /**
     * 租金规则计费类型
     */
    public static final String UM_RULE_TYPE = "UM_RULE_TYPE";
    /**
     * 雨伞类型
     */
    public static final String UM_UMBRELLA_TYPE = "UM_UMBRELLA_TYPE";
    /**
     * 伞道类型
     */
    public static final String UM_MACHINE_PATH_TYPE = "UM_MACHINE_PATH_TYPE";
    /**
     * 产品分类代号
     */
    public static final String UM_UMBRELLA_CLASSCODE = "UM_UMBRELLA_CLASSCODE";
    /**
     * 换代或变型代号
     */
    public static final String UM_UMBRELLA_MSUBVERSION = "UM_UMBRELLA_MSUBVERSION";
    /**
     * 使用去向
     */
    public static final String UM_UMBRELLA_MDIRECTION = "UM_UMBRELLA_MDIRECTION";


    /**
     * 时长卡类型
     */
    public static final String UM_RULE_TIMECARD_TYPE = "UM_RULE_TIMECARD_TYPE";

    public static final String UPLOAD_FILE_PATH= "zheng.umbrella.upload.path";

    /**
     * 启用状态
     */
    public static final int STATUS_UNLOCK = 1;

    /**
     * 禁止状态
     */
    public static final int STATUS_LOCK = 0;

    //二维码logo文件名称
    public final static String QRCODE_LOGO_IMAGE_NAME = "logo.png";

    public final static String QRCODE_MACHINE_WECHATAPP_PREFIX_PROD = "prod/";
    public final static String QRCODE_MACHINE_WECHATAPP_PREFIX_TEST = "test/";
    public final static String QRCODE_MACHINE_WECHATAPP_PREFIX_DEV = "dev/";

    /**
     * 伞机状态
     */
    //故障
    public static final int UM_MACHINE_STATUS_1 = 1;
    //在线
    public static final int UM_MACHINE_STATUS_2 = 2;
    //离线
    public static final int UM_MACHINE_STATUS_3 = 3;
    //未启用
    public static final int UM_MACHINE_STATUS_4 = 4;

    /**
     * 伞机故障状态
     */
    //正常
    public static final Integer UM_MACHINE_FAULT_STATUS_0 = 0;
    //红外1异常
    public static final Integer UM_MACHINE_FAULT_STATUS_1 = 1;
    //红外2异常
    public static final Integer UM_MACHINE_FAULT_STATUS_2 = 2;
    //RFID1异常
    public static final Integer UM_MACHINE_FAULT_STATUS_3 = 3;
    //RFID2异常
    public static final Integer UM_MACHINE_FAULT_STATUS_4 = 4;
    //电磁锁1异常
    public static final Integer UM_MACHINE_FAULT_STATUS_5 = 5;
    //电磁锁2异常
    public static final Integer UM_MACHINE_FAULT_STATUS_6 = 6;
    //主板异常
    public static final Integer UM_MACHINE_FAULT_STATUS_7 = 7;
    //其他异常
    public static final Integer UM_MACHINE_FAULT_STATUS_10 = 10;

    /**
     * 雨伞状态
     */
    //故障
    public static final Integer UM_UMBRELLA_STATUS_1 = 1;
    //空闲
    public static final Integer UM_UMBRELLA_STATUS_2 = 2;
    //已租出
    public static final Integer UM_UMBRELLA_STATUS_3 = 3;
    //无破损
    public static final Integer UM_UMBRELLA_STATUS_4 = 4;
    //锁定
    public static final Integer UM_UMBRELLA_STATUS_5 = 5;
    //损失
    public static final Integer UM_UMBRELLA_STATUS_6 = 6;
    /**
     * 使用去向。0:自用; 1:代理 2：第三方
     */
    public static final Integer UM_UMBRELLA_MDIRECTION_0 = 0;
    public static final Integer UM_UMBRELLA_MDIRECTION_1 = 1;
    public static final Integer UM_UMBRELLA_MDIRECTION_2 = 2;

}
